<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><bean:message key='com.application.systemmanager.notice_list' /></title>
	    <link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
	</head>
	<body>
	    <html:form styleId="workBenchForm" action="listWorkItemHis.do?method=getWorkItemHisList" styleClass="simple">
	      <input type="hidden" id="workitemID" name="workitemID" value=""/>
	    <input type="hidden" id="totalPage" value="${totalPage}"/>
	         <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;我的工作台 &gt; 已办事宜</td>
		    </tr>
		  </table>
				  <table cellspacing="3" cellpadding="0" width="98%" align="center"  border="0" class="kuang2 margtb5 hei12">
						  <tr>
			             <td width="1%">&nbsp;&nbsp;&nbsp;</td>
						  <td align="left" width="20%"><bean:message key="com.application.workbench.completetype" bundle="workbench"/>：
						   <ssh:select propertyName="type" pid="BUSS_TYPE" type="1" defaultName="${workBenchForm.type}"/></td>
	
			         
			              <td width="70%" align="left"><input class="buttonbg"   id="but_query" type="button" value="<bean:message key='com.application.workbench.query' bundle="workbench"/>" name="but_query" onClick="query();" /></td>
			            </tr>

			</table>
		
   <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margb5">
             <tr>
				<td>
					<fmt:bundle basename="com.application.workbench.struts.ApplicationResources_workbench">
				        <display:table name="workItemHisList" class="simple" id="workItemHis" pagesize="15" partialList="true" defaultsort="1" defaultorder="descending" size="resultSize" requestURI="listWorkItemHis.do?method=getWorkItemHisList"  > 
				
							<display:column style="width:5%; text-align:center;"  property="bussType" titleKey="com.application.workbench.completetype" 
							maxLength="5" sortable="true" headerClass="ctitle" value="23" decorator="com.manager.commons.DictCodeColumnDecorator" dictCode="BUSS_TYPE"/>
						<display:column  style="width:5%; text-align:center;"  sortable="true" titleKey="com.application.workbench.todocontent" headerClass="ctitle">
						   <a style="color:blue;" href="#" onclick="view('${workItemHis.id}');">${workItemHis.projectName}</a> 
				        </display:column>
					</display:table>
	              </fmt:bundle>

				</td>
			</tr>
		</table>
     </html:form>
	</body>
</html>
<script>


function view(workitemID){
    $("workitemID").value = workitemID;
	document.forms[0].action="workBench.do?method=goToBussinessView";
	document.forms[0].submit();
}

function query(){
	document.forms[0].action="listWorkItemHis.do?method=getWorkItemHisList";
	document.forms[0].submit();
}



</script>
